Vue.config.optionMergeStrategies.myvar = function(toVal,fromVal){
    //返回合并后的值
    console.log("00000");
    return fromVal
}


const MyMixin = {
    data(){
        return {
            title: 'world',
            message: 'hi'
        }
    },

    mounted(){
        console.log("----mixin----");
        console.log("mixin counted");
        this.handleClick();
    },
    computed:{
        newTitle(){
            return this.title + ' china.'
        }
    },

    methods:{
        handleClick(){
            console.log("mixin click");
        }
    },

    watch:{
        title(newTitle) {
            console.log(newTitle);
        }
    },

    myvar:'gp124',
}


export default MyMixin